home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / VideoFolder 1.0a / Source / ConvertToFinderIconPict.h < prev    next >
C/C++ Source or Header  |  1996-06-22  |  1KB  |  32 lines

  1.  
  2. class CFinderIconPicture 
  3. {
  4. public:                    CFinderIconPicture  ( short vRefNum, long dirID );
  5.                         ~CFinderIconPicture  ( );
  6.                         
  7.     void                AcceptPict ( GWorldPtr pic );
  8.  
  9. protected:
  10.  
  11.     void                 AddCustomIconResource ( short refNum, OSType resType, GWorldPtr pic, Rect& r, unsigned short depth );
  12.     void                 CreateIconResourcesToFile ( GWorldPtr pic, short refNum, Rect& r );
  13.     void                 CreateTiledFile ( GWorldPtr pic, unsigned short x, unsigned short y );
  14.  
  15.     void                 DeleteExistingIcons ( );
  16.  
  17.     Handle                 MakeIcon(GWorldPtr srcGWorld, Rect* srcRect, short dstDepth, short iconSize);
  18.     Handle                MakeICN_pound(GWorldPtr    gwp, GWorldPtr maskP, Rect *srcRect, short iconDimension);
  19.  
  20.     OSErr                 SetUpPixMap( short        depth,       /* Desired number of bits/pixel in off-screen */
  21.                                         Rect         *bounds,     /* Bounding rectangle of off-screen */
  22.                                         CTabHandle   colors,      /* Color table to assign to off-screen */
  23.                                         PixMapHandle aPixMap      /* Handle to the PixMap being initialized */ );
  24.  
  25.     void                 TearDownPixMap();
  26.  
  27.  
  28.     short                mVRefNum;
  29.     long                mDirID;
  30.     
  31.     PixMapHandle        mPix;
  32. };